.class Lcom/estrongs/android/view/g0$c;
.super Ljava/lang/Object;
.source "VideoEnabledWebChromeClient.java"

# interfaces
.implements Landroid/view/View$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/view/g0;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/view/g0;


# direct methods
.method constructor <init>(Lcom/estrongs/android/view/g0;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    invoke-static {v1}, Lcom/estrongs/android/view/g0;->b(Lcom/estrongs/android/view/g0;)Z

    move-result v1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    if-nez v1, :cond_0

    return v0

    .line 2
    :cond_0
    :try_start_1
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getActionIndex()I

    move-result v1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :catch_0
    const/4 v1, 0x0

    :goto_0
    if-eqz v1, :cond_1

    return v0

    .line 3
    :cond_1
    :try_start_2
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v1

    if-nez v1, :cond_5

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    iget-object v1, v1, Lcom/estrongs/android/view/g0;->m:Landroid/graphics/Rect;

    .line 5
    iget-object v2, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    invoke-static {v2}, Lcom/estrongs/android/view/g0;->a(Lcom/estrongs/android/view/g0;)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/view/View;->getHitRect(Landroid/graphics/Rect;)V

    .line 6
    iget-object v2, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    invoke-static {v2}, Lcom/estrongs/android/view/g0;->a(Lcom/estrongs/android/view/g0;)Landroid/view/View;

    move-result-object v2

    if-eq p1, v2, :cond_2

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    float-to-int v2, v2

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result p2

    float-to-int p2, p2

    invoke-virtual {v1, v2, p2}, Landroid/graphics/Rect;->contains(II)Z

    move-result p2

    if-eqz p2, :cond_2

    return v0

    .line 7
    :cond_2
    iget-object p2, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    invoke-static {p2}, Lcom/estrongs/android/view/g0;->c(Lcom/estrongs/android/view/g0;)Landroid/os/Handler;

    move-result-object p2

    iget-object v1, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    iget-object v1, v1, Lcom/estrongs/android/view/g0;->k:Ljava/lang/Runnable;

    invoke-virtual {p2, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 8
    iget-object p2, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    invoke-static {p2}, Lcom/estrongs/android/view/g0;->a(Lcom/estrongs/android/view/g0;)Landroid/view/View;

    move-result-object p2

    if-ne p1, p2, :cond_3

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    invoke-static {p1}, Lcom/estrongs/android/view/g0;->d(Lcom/estrongs/android/view/g0;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/util/o0;->b(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_5

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    invoke-static {p1}, Lcom/estrongs/android/view/g0;->e(Lcom/estrongs/android/view/g0;)Lcom/estrongs/android/view/VideoEnabledWebView;

    move-result-object p1

    invoke-virtual {p1}, Landroid/webkit/WebView;->getContext()Landroid/content/Context;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    invoke-static {p2}, Lcom/estrongs/android/view/g0;->d(Lcom/estrongs/android/view/g0;)Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2}, Lcom/estrongs/android/view/g0;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_1

    .line 11
    :cond_3
    iget-object p1, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    invoke-static {p1}, Lcom/estrongs/android/view/g0;->a(Lcom/estrongs/android/view/g0;)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/View;->getVisibility()I

    move-result p1

    if-nez p1, :cond_4

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    invoke-static {p1}, Lcom/estrongs/android/view/g0;->a(Lcom/estrongs/android/view/g0;)Landroid/view/View;

    move-result-object p1

    const/16 p2, 0x8

    invoke-virtual {p1, p2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1

    .line 13
    :cond_4
    iget-object p1, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    invoke-static {p1}, Lcom/estrongs/android/view/g0;->a(Lcom/estrongs/android/view/g0;)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    invoke-static {p1}, Lcom/estrongs/android/view/g0;->c(Lcom/estrongs/android/view/g0;)Landroid/os/Handler;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/view/g0$c;->a:Lcom/estrongs/android/view/g0;

    iget-object p2, p2, Lcom/estrongs/android/view/g0;->k:Ljava/lang/Runnable;

    const-wide/16 v1, 0xbb8

    invoke-virtual {p1, p2, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    :catch_1
    :cond_5
    :goto_1
    return v0
.end method
